# encoding='utf-8'
import base64

f = open("D:\\workspace\\python\\python_tool\\hboMonitor\\dist\\HboMstsc.exe", 'rb')
f2 = open('D:\\workspace\\python\\python_tool\\hboMonitor\\dist\\HboMstsc', mode='w', encoding='utf-8')

tmp = base64.b64encode(f.read())

f2.write(tmp.decode('utf-8'))
f2.close()
f.close()
